<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function fun(arr) {
        for (var i = 0; i < arr.length; i++) {
          console.log(arr[i]);
        }
      }
      var arr = [[10, 20, 30], 25, "张三", "李四", [10, 20, 30]];
      //type of [10, 20, 30] 返回结果是object 碰到不知道类型的参数 就测一下~
      for (var i = 0; i < arr.length; i++) {
        if (typeof arr[i] == "object") {
          fun(arr[i]);
        }
      }
    </script>
  </body>
</html>
